<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%

    String path = request.getContextPath();

    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>
<html>
<head>
    <title>登录</title>
    <base href="<%=basePath%>">
    <jsp:include page="/resources/v2/webui.jsp">
        <jsp:param name="UIS" value="FORM_DGRID_LAYER_BTN_LAYOUT_PAGE"/>
    </jsp:include>
    <link href="/css/global.css" rel="stylesheet"/>
    <style>

        .login-container {
            height: 300px;
            width: 500px;
            position: absolute;
            top: 30%;
            left: 30%;
        }

        .container {
            width: 100%;
            text-align: center;
            margin: 10px;
        }

        .container span {
            color: #000000;
        }



        .inputBox {
            font-size: 16px;
            width: 240px;
            height: 35px;
        }

        label {
            font-size: 18px;
        }

    </style>
</head>
<body>

<div class="login-container">
    <form class="login-form" method="post" action="user/login">
        <div class = "container">
            <label>
                <span>用户名</span>
                <input type='text' name='username' class="inputBox" value="${cookie.username.value}">
            </label>
            <br>
            <label>
                <span>口&nbsp令</span>
                <input type='password' name='password' class="inputBox" value="${cookie.password.value }" >
            </label>
            <br>
            <label style="margin-top: 5px">
                <span style="font-size: 12px">记住我</span>
                <input type='checkbox' name="remember" checked value="1" style="vertical-align:middle;margin-top:3px;">
            </label>
                <p style="color: #ff0000">
                    ${errMessage}
                </p>
            <div class="button">
                <input type="submit" id="login" class="tdh_btn tdh_btn_blue">
                <input type="reset" id="reset" class="tdh_btn tdh_btn_blue">
            </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="/js/jquery-3.4.1.min.js"></script>
<script type="text/javascript">
    $("#reset").click(function () {
        $(".inputBox").attr("value","");
    })
</script>
</body>


</html>
